package com.topnav.mc.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.topnav.mc.entity.base.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author: kenny
 * @Date: 2023/11/13 11:01
 */
@Data
@Accessors(chain = true)
@TableName("mc_fence_alarm")
public class FenceAlarm extends BaseEntity {
    private static final long serialVersionUID = 3800146827132167818L;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date alarmTime;
    private Long fenceId;
    private Integer alarmType;    // FenceAlarmType: FENCEIN(1,"进围栏报警"),  FENCEOUT(2,"出围栏报警"),
    private Long deviceId;
    private String alarmMessage;
    private Double longitude;
    private Double latitude;
}
